package com.bl.weilan.dao.repository;

import com.bl.weilan.dao.model.InformationTypeEntity;
import com.bl.weilan.dao.model.InstitutionCompanyEntity;
import lombok.Data;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface InstitutionCompanyRepository extends JpaRepository<InstitutionCompanyEntity, String> {
    List<InstitutionCompanyEntity> findByCompanyId(String id);



    Page<InstitutionCompanyEntity> findByInstitutionIdOrderByTimeDesc(String id, Pageable pageable);

    void deleteByFinancingId(String financingId);

    void deleteByCompanyId(String companyId);

}
